home *** CD-ROM | disk | FTP | other *** search
- Subject: Frame Negotiation
- Sent: 7/8/96 2:21 PM
- Received: 7/8/96 2:41 PM
- From: The3Furies@aol.com
- Reply-To: ODF Interest, ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- I have been reading the docs and scouring the source code for the past
- several days to try to get some handle on frame negotiation, and have not
- made much of any progress.
-
- Are there any code examples around which demonstrate a part which
- requests its frame shape, and a container that can process the requests?
- The majority of the info on frame negotiation seems to be in the OpenDoc
- docs and the procedure in ODF seems to be significantly different (ie the
- proxies get involved, the RequestFrameShape() returns boolean instead of
- ODShape, etc..)
-
- Some specific questions that I think are related:
-
- What exactly does a part call when it wants to change its shape? If it
- should call the frames RequestFrameShape, do I override the method or
- just call it with the shape I want?
-
- What are the Used and Active shapes. Do you set one of these, and the
- rest of the frame negotiation is automatic (assuming you accect what you
- get)? AdjustActiveShape() and AdjustUsedShape() in FW_CFrame seem to
- imply that I should do something there, but what? The ODF docs metion
- that I probably want to override them, but doesn't say why or what to do
- in the methods.
-
-
- If anyone has the time, desire, sympathy etc to help me out, here's what
- I'm trying to do:
- I have a container very similar to ODFTable, and the embedded parts need
- to change their height programatically (ie expand and collapse like
- folders in the finder). I want the embedded parts to change their
- height, and the contining table to change the row height to accomodate
- the new part height. Shifting the other embedded frames should be no
- problem since ODFTable does this when grid lines are dragged anyway. I
- need something more than "just call RequestFrameShape()", since I have
- been unable to uncover any info on how to do this. If there is sample
- code which I have missed, pointing me there would help.
-
- Thanks!
- Chris Colapietro
-
-
-
-
-
- ========================================================================
- Chris Colapietro email: the3furies@aol.com
- President
- The 3 Furies Software, Inc. voice: (804) 698-6859
- ========================================================================
-
-
-